<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>上传下载</title>
</head>
<script>
	var ctx = [[@{/}]]; 
	function downFile(){
		console.info(".................................");
		window.location.href= ctx + 'downloadFile';
	}
</script>
<body>
	<form enctype="multipart/form-data" method="post" action="/demo/uploadImg">
    	图片<input type="file" name="file"/> <input type="submit" value="上传"/>
	</form>
	<button type="button" onclick="downFile()">下载</button>
</body>
</html>